package com.ta.gulimall.auth.feign;

import com.ta.gulimall.common.utils.system.R;
import com.ta.gulimall.auth.view.vo.UserLoginVo;
import com.ta.gulimall.auth.view.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    /**
     * 注册用户信息
     */
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    /**
     * 登录用户
     * @param vo
     * @return
     */
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

}
